package com.zhiyou.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhiyou.app.pojo.bo.TaskResult;
import com.zhiyou.app.pojo.entity.TaskEntity;
import com.zhiyou.app.pojo.vo.TaskResponseVo;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jonathan.z
 * @since 2025-07-03
 */
public interface ITaskService extends IService<TaskEntity> {
    List<TaskResponseVo> createTask(String orderNum);
    TaskResult getTaskResult(TaskEntity taskEntity);
    TaskResult getOrderTaskCombineResult(String orderNum);
    void timerGetTaskResult();
    SseEmitter getTaskProcess(String orderNum) throws IOException;
}
